package com.hrd.service;

import com.alibaba.fastjson.JSONObject;
import com.hrd.common.util.bean.ServiceResult;
import com.hrd.mybatis.bean.auto.HrdWarehouseRelation;
import com.hrd.mybatis.bean.ext.ExtWarehouse;

import java.util.HashMap;
import java.util.List;

/**
 * @Author: wangpeng
 * @Date: 2022/1/12 14:40
 * @Description:
 */
public interface WarehouseService extends BaseService{
    /**
     * 定时同步仓库信息
     */
    void synchronizationWarehouseInfo();

    /**
     * 查询仓库列表
     * @param form
     * @return
     */
    ServiceResult<List<HrdWarehouseRelation>> list(HrdWarehouseRelation warehouse);

    /**
     * 根据id获取仓库信息
     * @param id
     * @return
     */
    HrdWarehouseRelation getInfo(Integer id);

    /**
     * 获取金蝶仓库
     * @return
     */
    List<JSONObject> getJdwarehouse();

    List<JSONObject> getSpace(String groupid);
    /**
     *更新仓库
     * @param param
     * @return
     */
    ServiceResult<HrdWarehouseRelation> update(HrdWarehouseRelation param);
}
